import request from '@/utils/request'

// 查询停车卡订单列表
export function listParkingCardOrder(query) {
  return request({
    url: '/parking/parkingCardOrder/list',
    method: 'get',
    params: query
  })
}

// 查询停车卡订单详细
export function getParkingCardOrder(id) {
  return request({
    url: '/parking/parkingCardOrder/' + id,
    method: 'get'
  })
}

// 新增停车卡订单
export function addParkingCardOrder(data) {
  return request({
    url: '/parking/parkingCardOrder',
    method: 'post',
    data: data
  })
}

// 修改停车卡订单
export function updateParkingCardOrder(data) {
  return request({
    url: '/parking/parkingCardOrder',
    method: 'put',
    data: data
  })
}

// 删除停车卡订单
export function delParkingCardOrder(id) {
  return request({
    url: '/parking/parkingCardOrder/' + id,
    method: 'delete'
  })
}

// 停车卡订单退款
export function refundParkingCardOrder(data) {
  return request({
    url: '/parking/parkingCardOrder/refund',
    method: 'post',
    data: data
  })
}

